export default [
  // 账户管理列表
  {
    url: '/auth/getAccountList',
    data: {
      name: '@cname',
      phone: {'regexp': /^1[34578]\d{9}$/},
      province: '@province',
      city: '@city',
      tip: '@ctitle' 
    }  
  },
  // 轮播图列表
  {
    url: '/goods/bannerList',
    data: {
      image: 'image',
      banner_describe: '@ctitle',
      url: '@url',
      is_use: 'is',
      create_time: '@datetime',
      update_time: '@datetime'
    }
  },
  // 分类栏图标列表
  {
    url: '/goods/categoryList',
    data: {
      image: 'image',
      max: '@integer(0, 100)',
      name: '@ctitle',
      sort: '@increment',
      create_time: '@datetime'
    }
  },
  // 首页弹窗
  {
    url: '/goods/popList',
    data: {
      type: 'is',  // '弹窗类型:1=优惠券,2=公告'
      content: '@ctitle',
      meet_amount: '@integer(100, 300)',
      reduce_amount: '@integer(0, 50)',
      is_use: 'is',
      start_time: '@datetime',
      end_time: '@datetime',
      create_time: '@datetime'
    }
  },
  // 商品一级分类
  {
    url: '/goods/goodsCategory1List',
    data: {
      name: '@cname',
      category_describe: '@ctitle',
      is_show_level2: 'is',
      sort: '@increment',
      create_time: '@datetime'
    }
  },
  // 商品二级分类
  {
    url: '/goods/goodsCategory2List',
    data: {
      image: 'image',
      create_time: '@datetime',
      name: '@name',
      pid: '@integer(0, 50)',
      id: '@integer'
    }
  },
  // 商品列表
  {
    url: '/goods/goodsList',
    data: {
      name: '@cname',
      code: '@integer(100000, 999999)',
      type: 'is',
      cash_pledge: 'price',
      specification: '@ctitle',
      num: '@integer(0, 999999)',
      price: 'price',
      inventory: '@integer(0, 999999)',
      is_use: 'is',
      buy_num: '@integer(0, 999999)',
      start_time: '@datetime',
      is_hot: 'is',
      is_recommend: 'is',
      support_citys: 'citys',
      support_exhibition: 'citys',
      level1: '@integer(100000, 999999)',
      level2: '@integer(100000, 999999)',
      image: 'image',
      goods_describe: '@ctitle',
      create_time: '@datetime',
      update_time: '@datetime',
      url: '@url',
    }
  },
  {
    url: '/shop/list',
    data: {
      address: '@county(true)',
      create_time: '@datetime',
      province: '@province',
      phone: /^1[385][1-9]\d{8}/,
      city: '@city',
      idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
      name: '@name',
      id: '@id',
      region: '@city',
      category1: 'category',
      category2: 'category',
      photo: 'image',
      idcard_face: 'image',
      idcard_back: 'image'
    }
  }
]
